package com.ruoyi.cat.service.impl;

import java.util.List;

import com.ruoyi.cat.domain.CatOutsiderealmTable;
import com.ruoyi.cat.mapper.CatOutsiderealmTableMapper;
import com.ruoyi.cat.service.ICatOutsiderealmTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 外链管理域名配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-21
 */
@Service
public class CatOutsiderealmTableServiceImpl implements ICatOutsiderealmTableService
{
    @Autowired
    private CatOutsiderealmTableMapper catOutsiderealmTableMapper;

    /**
     * 查询外链管理域名配置
     * 
     * @param id 外链管理域名配置主键
     * @return 外链管理域名配置
     */
    @Override
    public CatOutsiderealmTable selectCatOutsiderealmTableById(Long id)
    {
        return catOutsiderealmTableMapper.selectCatOutsiderealmTableById(id);
    }

    /**
     * 查询外链管理域名配置列表
     * 
     * @param catOutsiderealmTable 外链管理域名配置
     * @return 外链管理域名配置
     */
    @Override
    public List<CatOutsiderealmTable> selectCatOutsiderealmTableList(CatOutsiderealmTable catOutsiderealmTable)
    {
        return catOutsiderealmTableMapper.selectCatOutsiderealmTableList(catOutsiderealmTable);
    }

    /**
     * 新增外链管理域名配置
     * 
     * @param catOutsiderealmTable 外链管理域名配置
     * @return 结果
     */
    @Override
    public int insertCatOutsiderealmTable(CatOutsiderealmTable catOutsiderealmTable)
    {
        return catOutsiderealmTableMapper.insertCatOutsiderealmTable(catOutsiderealmTable);
    }

    /**
     * 修改外链管理域名配置
     * 
     * @param catOutsiderealmTable 外链管理域名配置
     * @return 结果
     */
    @Override
    public int updateCatOutsiderealmTable(CatOutsiderealmTable catOutsiderealmTable)
    {
        return catOutsiderealmTableMapper.updateCatOutsiderealmTable(catOutsiderealmTable);
    }

    /**
     * 批量删除外链管理域名配置
     * 
     * @param ids 需要删除的外链管理域名配置主键
     * @return 结果
     */
    @Override
    public int deleteCatOutsiderealmTableByIds(Long[] ids)
    {
        return catOutsiderealmTableMapper.deleteCatOutsiderealmTableByIds(ids);
    }

    /**
     * 删除外链管理域名配置信息
     * 
     * @param id 外链管理域名配置主键
     * @return 结果
     */
    @Override
    public int deleteCatOutsiderealmTableById(Long id)
    {
        return catOutsiderealmTableMapper.deleteCatOutsiderealmTableById(id);
    }

    @Override
    public CatOutsiderealmTable selectCatOutsiderealmById(Long outsiderealmId) {
        return catOutsiderealmTableMapper.selectCatOutsiderealmById(outsiderealmId);
    }

    @Override
    public CatOutsiderealmTable selectCatOutsiderealmByDomainName(String domainName) {
        return catOutsiderealmTableMapper.selectCatOutsiderealmByDomainName(domainName);
    }

    @Override
    public CatOutsiderealmTable selectCatOutsiderealmByDomain(String domainUrl) {
        return catOutsiderealmTableMapper.selectCatOutsiderealmByDomain(domainUrl);
    }

    @Override
    public int deleteCatOutsiderealmTableByWxConfigId(Long wxConfigId) {
        return catOutsiderealmTableMapper.deleteCatOutsiderealmTableByWxConfigId(wxConfigId);
    }

    @Override
    public CatOutsiderealmTable selectCatOutsiderealmByActivityId(Long activityId) {
        return catOutsiderealmTableMapper.selectCatOutsiderealmByActivityId(activityId);
    }
}
